package com.example.wyy;

import android.os.Bundle;
import android.widget.ListView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import java.util.List;

import adapter.ListViewAdapter;
import entiy.MusicInfo;

public class TestActivity extends AppCompatActivity {
    private ListView listView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_test);

        listView = findViewById(R.id.listview);


        try {
            final ListViewAdapter listViewAdapter = new ListViewAdapter(this, MusicInfo.getDefaultInfo());
            listView.setAdapter(listViewAdapter);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}